package org.example.day20240812;

import java.util.Scanner;

public class text4 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int first = scanner.nextInt();
        int second = scanner.nextInt();
        int third = scanner.nextInt();
        int max = 0,middle = 0,min = 0;
        if (first > second && first > third) {
            if (second >= third) {
                max = first;
                middle = second;
                min = third;
            } else {
                max = first;
                middle = third;
                min = second;
            }
        } else if (second > first && second > third) {
            if (first >= third) {
                max = second;
                middle = first;
                min = third;
            } else {
                max = second;
                middle = third;
                min = first;
            }
        } else if (third > first && third > second) {
            if (first >= second) {
                max = third;
                middle = first;
                min = second;
            } else {
                max = third;
                middle = second;
                min = first;
            }
        }else{
            max = third;
            middle = second;
            min = first;
        }
        System.out.println(min+"->"+middle+"->"+max);
    }
}
